package com.cwnu.service.impl;

import com.cwnu.dao.AddressMapper;
import com.cwnu.entity.Address;
import com.cwnu.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ProjectName: mall-cwnu
 * @Titile: AddressServiceImpl
 * @Author: Lucky
 * @Description: 地址的业务实现类
 */
@Service
public class AddressServiceImpl implements AddressService {
    @Autowired
    private AddressMapper addressMapper;
    @Override
    public List<Address> getAllProvince() {
        return addressMapper.getAllProvince();
    }

    @Override
    public List<Address> getAddressList(Integer addressRegionId) {
        return addressMapper.getAddressList(addressRegionId);
    }
}
